﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanlyThoiGian
{
    public partial class FormMain : Form
    {
        public static String manv;
        public static bool quyen;
        public FormMain()
        {
            InitializeComponent();
        }

        private void radMenuItem2_Click(object sender, EventArgs e)
        {

        }

        private void radMenuItem3_Click(object sender, EventArgs e)
        {

        }

        private void DangNhapMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void FormMain_Load(object sender, EventArgs e)
        {
            FormDangNhap frm = new FormDangNhap();
            frm.ShowDialog();
            DangNhapMenuItem.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
            HiMenuItem.Text = "Hi," + manv;
            if (quyen == false)
            {
                QuanTriMenuItem.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
                dsbaocaoMenuItem.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
            }
        }

        private void radMenuItem5_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void ThayDoiMatKhauMenuItem_Click(object sender, EventArgs e)
        {
            FormThayDoiMatKhau.manv = FormMain.manv;
            FormThayDoiMatKhau frm = new FormThayDoiMatKhau();
            frm.MdiParent = this;
            frm.Show();
        }

        private void QuanLyTaiKhoanMenuItem_Click(object sender, EventArgs e)
        {
            FormNguoiDung frm = new FormNguoiDung();
            frm.MdiParent = this;
            frm.Show();
        }

        private void ThietLapThoiGianMenuItem_Click(object sender, EventArgs e)
        {
            FormThietLapThoiGian frm = new FormThietLapThoiGian();
            frm.MdiParent = this;
            frm.Show();
        }

        private void baocaososanhMenuItem_Click(object sender, EventArgs e)
        {
            FormBaoCaoSoSanh frm = new FormBaoCaoSoSanh();
            frm.Show();
        }

        private void baocaodanhsachMenuItem_Click(object sender, EventArgs e)
        {
            FormBaoCaoNhanvien frm = new FormBaoCaoNhanvien();
            frm.Show();
        }

        private void baocaochitietMenuItem_Click(object sender, EventArgs e)
        {
            FormBaoCaoChiTiet frm = new FormBaoCaoChiTiet();
            frm.Show();
        }

    }
}
